<h1>User</h1>
<form action="<?php echo URL; ?>/user/create" method="post">
    <label>Login</label><input type="text" name="login" /><br />
    <label>Password</label><input type="text" name="password" /><br />
    <label>Role</label>
        <select name="role">
            <option value='0'>Default</option>
            <option value='1'>User</option>
            <option value='2'>Admin</option>
        </select>
    <label>&nbsp;</label><input type="submit" />    
</form>
<hr />
<?php if(isset($this->user_list)):?>
    <table>
        <tr>
            <td>ID</td>
            <td>LOGIN</td>
            <td>ROLE</td>
            <td>ACTION</td>
        </tr>
        <?php foreach($this->user_list as $list): ?>
        <tr>
            <td align="center"><?php echo $list['id']; ?></td>
            <td align="center"><?php echo $list['login']; ?></td>
            <td align="center"><?php echo $list['role']; ?></td>
            <td>
                <a href="<?php echo URL . 'user/edit/' . $list['id']; ?>">Edit</a> |  
                <a href="<?php echo URL . 'user/delete/' . $list['id']; ?>">Delete</a>
            </td>
        </tr>
        <?php endforeach; ?>    
    </table>
<?php else: ?>
<?php endif; ?>
    